import becker.robots.City;
import becker.robots.Direction;


public class Main {
	City city = new City(10,10);
	SwimmerBot[] bot = new SwimmerBot[20];
	Direction[] dir = {Direction.SOUTH,Direction.WEST,Direction.NORTH,Direction.EAST};	
	
	public static void main(String[] args) {
		new Main();
	}

	public Main() {
		Init();
		Thread[] thread = new Thread[bot.length];
		for (int i = 0; i < bot.length; i++){
			thread[i] = new Thread(bot[i]);
			thread[i].start();
		}
	}

	public void Init() {
		int z = 0 ,x = 0, y = 4;
		for (int i = 0; i < bot.length; i++){
			bot[i] = new SwimmerBot(city, y, x, dir[z]);
			if (i % 2 == 0){
				y++;
			} else {
				x++;
				y = 4;
			}
			if (z == 3){
				z = 0;
			} else {
				z++;
			}
			
		}
	}
}
